// 入口js

// 引入 React
import React, { Component } from "react";
// 引入 ReactDOM
import ReactDOM from "react-dom/client";

// 引入 MyApp
import MyApp from "./MyApp";
// 引入 App
import App from "./App";

// 创建根元素
const root = ReactDOM.createRoot(document.querySelector("#root"));

// 渲染
root.render(
  <>
    <App name="李四" />
    <br />
    <MyApp name="张三" age="18" />
    <br />
    <MyApp name="李四" age="20" />
  </>
);
